﻿<%@ Page Language="C#" MasterPageFile="~/MasterClient.master" AutoEventWireup="true" CodeFile="frm_TraineeAcademicInfo.aspx.cs" Inherits="frm_TraineeAcademicInfo" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
THÔNG TIN VỀ QUÁ TRÌNH HỌC TẬP
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
<%-- <div class="titleHeader_VN">
    <asp:Label ID="lbl_titleHeader"  runat="server" Text="THÔNG TIN VỀ QUÁ TRÌNH HỌC TẬP"></asp:Label>
 </div>
  <div class="titlename_VN">
    <asp:Label ID="lbl_NameHeader"  runat="server" Text="nameHeader"></asp:Label>
 </div>--%>
  <div class="maindiv">
        <div class="Header1">
            <span>＊: Nhập bắt buộc các mục có dấu *.</span>
        </div>
        <div class="Header3">
            <span>※Hãy nhập toàn bộ quá trình học tập bắt đầu từ trung học.
            <br />
            ※Tiến hành đăng ký lớp tiếp theo bằng cách nhấn vào nút 「Nhập mới」.</span>
        </div>
        <div>&nbsp;</div>

        <div class="detail-admin-row" id="dv_学歴区分" runat="server">
            <span class="detail-admin-label">Giai đoạn :</span>
            <asp:DropDownList Width="150px" ID="ddl_学歴区分" runat="server">
                <asp:ListItem  Value="-1">- Lựa chọn  -</asp:ListItem>
                <asp:ListItem Value="0">Trung học cơ sở</asp:ListItem>
                <asp:ListItem Value="1">Trung học phổ thông</asp:ListItem>
                <asp:ListItem Value="2">Cao đẳng</asp:ListItem>
                <asp:ListItem Value="3">Cử nhân </asp:ListItem>
                <asp:ListItem Value="4">Thạc sĩ </asp:ListItem>
                <asp:ListItem Value="5">Tiến sĩ</asp:ListItem>
            </asp:DropDownList>
            <span class="required-field"> *</span>
        </div>
        <div class="detail-admin-row" id="dv_開始時期" runat="server">
            <span class="detail-admin-label">Thời gian bắt đầu nhập học :</span>
            <asp:DropDownList Width="78px" ID="ddl_開始時期月" runat="server">
             <asp:ListItem Value="0">- Tháng -</asp:ListItem>
                <asp:ListItem Value="01">1</asp:ListItem>
                <asp:ListItem Value="02">2</asp:ListItem>
                <asp:ListItem Value="03">3</asp:ListItem>
                <asp:ListItem Value="04">4</asp:ListItem>
                <asp:ListItem Value="05">5</asp:ListItem>
                <asp:ListItem Value="06">6</asp:ListItem>
                <asp:ListItem Value="07">7</asp:ListItem>
                <asp:ListItem Value="08">8</asp:ListItem>
                <asp:ListItem Value="09">9</asp:ListItem>
                <asp:ListItem Value="10">10</asp:ListItem>
                <asp:ListItem Value="11">11</asp:ListItem>
                <asp:ListItem Value="12">12</asp:ListItem>
            </asp:DropDownList>
            <asp:DropDownList Width="68px" ID="ddl_開始時期年" runat="server">
                <asp:ListItem>- Năm -</asp:ListItem>
                
            </asp:DropDownList>
            <span class="required-field"> *</span>
        </div>
        <div class="detail-admin-row" id="dv_終了時期" runat="server">
            <span class="detail-admin-label">Thời gian kết thúc khóa học :</span>
            <asp:DropDownList Width="78px" ID="ddl_終了時期月" runat="server">
                <asp:ListItem Value="0">- Tháng -</asp:ListItem>
                <asp:ListItem Value="01">1</asp:ListItem>
                <asp:ListItem Value="02">2</asp:ListItem>
                <asp:ListItem Value="03">3</asp:ListItem>
                <asp:ListItem Value="04">4</asp:ListItem>
                <asp:ListItem Value="05">5</asp:ListItem>
                <asp:ListItem Value="06">6</asp:ListItem>
                <asp:ListItem Value="07">7</asp:ListItem>
                <asp:ListItem Value="08">8</asp:ListItem>
                <asp:ListItem Value="09">9</asp:ListItem>
                <asp:ListItem Value="10">10</asp:ListItem>
                <asp:ListItem Value="11">11</asp:ListItem>
                <asp:ListItem Value="12">12</asp:ListItem>
            </asp:DropDownList>
            <asp:DropDownList Width="68px" ID="ddl_終了時期年" runat="server">
                <asp:ListItem Value="0">- Năm -</asp:ListItem>
               
            </asp:DropDownList>
            <span class="required-field"> *</span>
        </div>
        <div class="detail-admin-row" id="dv_学校名" runat="server">
            <span class="detail-admin-label">Tên trường :</span>
            <asp:TextBox ID="txt_学校名" runat="server" ValidationGroup="detailForm" Width="300px"></asp:TextBox>
            <span class="required-field"> *</span>
        </div>
        <div class="detail-admin-row" id="dv_学校住所" runat="server">
            <span class="detail-admin-label">Địa chỉ Trường :</span>
            <asp:TextBox ID="txt_学校住所" runat="server" ValidationGroup="detailForm" Width="300px"></asp:TextBox>
            
        </div>
        <div class="detail-admin-row" id="dv_専攻区分" runat="server">
            <span class="detail-admin-label">Ngành học :</span>
            <asp:DropDownList ID="ddl_専攻区分" runat="server" Width="149px">
                <asp:ListItem Value="-1">- Lựa chọn  -</asp:ListItem>
                <asp:ListItem Value="0">Tự nhiên</asp:ListItem>
                <asp:ListItem Value="1">Xã hội</asp:ListItem>
            </asp:DropDownList>
        </div>
        <div class="detail-admin-row" id="dv_全日夜間" runat="server">
            <span class="detail-admin-label">Thời gian học :</span>
            <asp:DropDownList ID="ddl_全日夜間" runat="server" Width="149px">
                <asp:ListItem Value="-1">- Lựa chọn  -</asp:ListItem>
                <asp:ListItem Value="0">Ngày</asp:ListItem>
                <asp:ListItem Value="1">Đêm</asp:ListItem>
            </asp:DropDownList>
        </div>
         <div class="detail-admin-row" id="dv_専攻系列コード" runat="server">
            <span class="detail-admin-label">Đề tài :</span>
             <asp:DropDownList ID="ddl_専攻系列コード" runat="server" Width="150px" DataTextField="氏名" DataValueField="ID">
              <asp:ListItem Value="-1">- Lựa chọn  -</asp:ListItem>
             </asp:DropDownList>
           
        </div>
         <div class="detail-admin-row" id="dv_専攻学部" runat="server">
            <span class="detail-admin-label">Khóa học :</span>
            <asp:TextBox ID="txt_専攻学部" runat="server" ValidationGroup="detailForm" Width="230px"></asp:TextBox>
           
        </div>
         <div class="detail-admin-row" id="dv_専攻学科" runat="server">
            <span class="detail-admin-label">Môn học :</span>
            <asp:TextBox ID="txt_専攻学科" runat="server" ValidationGroup="detailForm" Width="230px"></asp:TextBox>
          
        </div>
         <div class="detail-admin-row" id="dv専攻内容" runat="server">
            <span class="detail-admin-label"> Nội dung đề tài :</span>
            <asp:TextBox ID="txt_専攻内容" runat="server" ValidationGroup="detailForm" Width="230px"></asp:TextBox>
            
        </div>
         <div class="detail-admin-row" id="dv_専門技術" runat="server">
            <span class="detail-admin-label"> Kỹ năng chuyên môn :</span>
            <asp:TextBox ID="txt_専門技術" runat="server" ValidationGroup="detailForm" Width="150px"></asp:TextBox>
           
        </div>
        
        <div class="detail-admin-row" id="d" runat="server">
            <span class="detail-admin-label">&nbsp;</span>
             <asp:Button ID="btn_登録" runat="server" Text="Nhập mới" CssClass="btn" OnClick="btn_登録_Click" />
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
             <asp:Button ID="btn_リセット" runat="server" Text="Xóa trắng" CssClass="btn" OnClick="btn_リセット_Click" />
         </div>
          <div class="Header2">
             <span style="color:Gray">＊Danh sách quá trình học tập</span>
          </div>
           <asp:HiddenField id="hd_pageCount" runat="server"></asp:HiddenField> 
           <div style="MARGIN: 10px 50px 10px" class="detail-admin-row">
            <asp:GridView id="grv_TraineeAcademicInfo" runat="server" Width="100%"  CellPadding="4" 
            GridLines="Vertical" AutoGenerateColumns="False"  
            ShowFooter="True" OnRowCommand="grv_TraineeAcademicInfo_RowCommand" OnDataBound="grv_TraineeAcademicInfo_DataBound" 
            EmptyDataText="trong" OnRowCreated="grv_TraineeAcademicInfo_RowCreated" OnSorting="grv_TraineeAcademicInfo_Sorting" 
            AllowSorting="True" ><Columns>
                <asp:TemplateField HeaderText="Giai đoạn" SortExpression="学歴区分">
                <ItemTemplate>
                    <asp:LinkButton id="HyperLink1" runat="server" Text='<%# Eval("学歴区分Name") %>' CommandArgument='<%# Eval("ID") %>' CommandName="SELECT"></asp:LinkButton> 
                </ItemTemplate>
                
                 <FooterTemplate>
                         <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/Images/controls/first copy.gif"  CommandArgument="First" CommandName="Page" />
                        <asp:ImageButton ID="ImageButton2" runat="server"   ImageUrl="~/Images/controls/last copy.gif" CommandArgument="Prev" CommandName="Page"/>
                         ページ<asp:DropDownList ID="ddlPages" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlPages_SelectedIndexChanged"></asp:DropDownList>
                            / <asp:Label ID="lblPageCount" runat="server"></asp:Label>
                             <asp:ImageButton ID="ImageButton3" runat="server" ImageUrl="~/Images/controls/next copy.gif"   CommandArgument="Next" CommandName="Page" />
                        <asp:ImageButton ID="ImageButton4" runat="server" ImageUrl="~/Images/controls/previous copy.gif"  CommandArgument="Last" CommandName="Page"/>
                    </FooterTemplate>
                     <FooterStyle HorizontalAlign="center" VerticalAlign="Middle" BorderWidth="1" BorderStyle="Solid"  BorderColor="Black" BackColor="#808080"></FooterStyle>
                <HeaderStyle  BorderWidth="1" BorderStyle="Solid"  BorderColor="Black" />
                <ItemStyle   BorderWidth="1" BorderStyle="Solid"  BorderColor="Black"  />
                </asp:TemplateField>

                <asp:TemplateField HeaderText="Tên trường" SortExpression="学校名">
                   
                    <ItemTemplate>
                         <asp:Label ID="Label1" runat="server" Text='<%# Bind("学校名") %>'></asp:Label>
                    </ItemTemplate>
                   
                    <HeaderStyle  BorderWidth="1" BorderStyle="Solid"  BorderColor="Black" />
                <ItemStyle   BorderWidth="1" BorderStyle="Solid"  BorderColor="Black"  />
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Thời gian bắt đầu" SortExpression="開始時期">
                    
                    <ItemTemplate>
                            <asp:Label ID="Label2" runat="server" Text='<%# Bind("開始時期","{0:yyyy/MM/dd}") %>'></asp:Label>
                     </ItemTemplate>
                   
                    <HeaderStyle  BorderWidth="1" BorderStyle="Solid"  BorderColor="Black" />
                <ItemStyle   BorderWidth="1" BorderStyle="Solid"  BorderColor="Black"  />
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Thời gian kết thúc" SortExpression="終了時期">
                   
                    <ItemTemplate>
                        <asp:Label ID="Label3" runat="server" Text='<%# Bind("終了時期","{0:yyyy/MM/dd}") %>'></asp:Label>
                    </ItemTemplate>
                   
                   <HeaderStyle  BorderWidth="1" BorderStyle="Solid"  BorderColor="Black" />
                <ItemStyle   BorderWidth="1" BorderStyle="Solid"  BorderColor="Black"  />
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:TemplateField>
                 <asp:TemplateField  HeaderText="Xóa">
                    <ItemStyle HorizontalAlign ="Center" Width ="50px" />
                    <ItemTemplate>
                   
                        <asp:ImageButton ID="ImageButton5" runat="server" ImageUrl="~/Images/Delete.gif" Width="15px" Height="15px" CausesValidation="false" CommandName="del" CommandArgument ='<%# Eval("ID") %>'  OnClientClick="return confirm('Bạn có chắc muốn xóa thông tin này không ?')" />
                   
                    </ItemTemplate>
                    <HeaderStyle  BorderWidth="1" BorderStyle="Solid"  BorderColor="Black" />
                <ItemStyle   BorderWidth="1" BorderStyle="Solid"  BorderColor="Black"  />
                </asp:TemplateField>
                
          </Columns>
           <RowStyle BackColor="#FFFFCC" BorderWidth="1" BorderStyle="Solid"  BorderColor="Black"/>
            <FooterStyle BackColor="#CCCC99" />
           
            <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
            <HeaderStyle Height="40px" BackColor="#808080" Font-Bold="True" 
                ForeColor="White" />
            <AlternatingRowStyle BackColor="White" />
            
           <SelectedRowStyle BackColor="PaleGoldenrod" ForeColor="DarkSlateBlue" />
            </asp:GridView>
            </div>
         <div class="Header3" style="margin-bottom:20px">
            <span>※Nhấp vào cột [Giai đoạn]để chỉnh sửa thông tin.
            <br />
           ※Nhập thông tin về quá trình làm việc bằng cách bấm vào nút 「Thông tin việc làm」.
             <br />
           ※Nhấp vào nút 「Hoàn tất」 để kết thúc việc đăng ký thông tin quá trình học.</span>
        </div>
         <div class="detail-admin-row">
             <div class="btn_back">
                
             </div>
             <div class="btn_next">
                 <asp:Button ID="btn_次"  runat="server" Text="Thông tin việc làm" OnClick="btn_次_Click"  />
                 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                 <asp:Button ID="btn_OK"  runat="server" Text="Hoàn tất" OnClick="btn_OK_Click" CssClass="btn" />
             </div>
         </div>
        
</div> 
  <div>&nbsp;</div>
  <br />
  </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>

